package com.example.mongodb.mongodb.controller.rabbitmq;

import lombok.extern.apachecommons.CommonsLog;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class HelloConsumer {

    @RabbitListener(queues = "myQueue")
    public void service(String message){
        System.out.println(message);
    }

}
